package com.yj.cloudnote.service;

import com.sun.org.apache.xpath.internal.operations.Bool;
import com.yj.cloudnote.model.Page;
import com.yj.cloudnote.model.User;

import java.util.List;

/**
 * @Author: jy
 * @Description:
 * @Date: 19:00 2018/4/5
 */
public interface UserService {
    public List<User> getAllUsers();
    public User selectByPrimaryKey(Integer userid);
    public User selectByUsername(String username);
    public void insertUser(User user);
    public List<User> getUsersByPage(Page page);
    public int getUnblockedCount();
    public Boolean userBlocked(int userid);
    public List<User> getBlockedUsersByPage(Page page);
    public int getBlockedCount();
    public Boolean userUnblocked(int userid);
}
